/** ---营销管理--- */
export const market = [
  // 电站活动
  {
    path: '/stationActivitiesList',
    name: 'stationActivitiesList',
    component: () =>
      import(
        '@/pages/marketingManagement/stationActivities/stationActivitiesList.vue'
      ),
    meta: {
      title: '营销管理+电站活动',
      permission: 'stationActivitiesList.see',
    },
  },
  {
    path: '/stationActivitiesAdd',
    name: 'stationActivitiesAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/stationActivities/stationActivitiesAdd.vue'
      ),
    meta: {
      title: '营销管理+电站活动+新增',
      permission: 'stationActivitiesList.add',
    },
  },
  {
    path: '/stationActivitiesEdit',
    name: 'stationActivitiesEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/stationActivities/stationActivitiesAdd.vue'
      ),
    meta: {
      title: '营销管理+电站活动+修改',
      permission: 'stationActivitiesList.edit',
    },
  },
  {
    path: '/stationActivitiesDetail',
    name: 'stationActivitiesDetail',
    component: () =>
      import(
        '@/pages/marketingManagement/stationActivities/stationActivitiesDetail.vue'
      ),
    meta: {
      title: '营销管理+电站活动+详情',
      permission: 'stationActivitiesList.see',
    },
  },
  // 广告管理
  {
    path: '/adList',
    name: 'adList',
    component: () =>
      import(
        '@/pages/marketingManagement/advert/adList.vue'
      ),
    meta: {
      title: '营销管理+广告管理',
      permission: 'adList.see',
    },
  },
  {
    path: '/adAdd',
    name: 'adAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/advert/adAdd.vue'
      ),
    meta: {
      title: '营销管理+广告管理+新增',
      permission: 'adList.add',
    },
  },
  {
    path: '/adEdit',
    name: 'adEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/advert/adAdd.vue'
      ),
    meta: {
      title: '营销管理+广告管理+修改',
      permission: 'adList.edit',
    },
  },
  // 标签管理
  {
    path: '/labelList',
    name: 'labelList',
    component: () =>
      import(
        '@/pages/marketingManagement/labelManagement/labelList.vue'
      ),
    meta: {
      title: '营销管理+标签管理',
      permission: 'labelList.see',
    },
  },
  {
    path: '/labelAdd',
    name: 'labelAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/labelManagement/labelAdd.vue'
      ),
    meta: {
      title: '营销管理+标签管理+新增',
      permission: 'labelList.add',
    },
  },
  {
    path: '/labelEdit',
    name: 'labelEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/labelManagement/labelAdd.vue'
      ),
    meta: {
      title: '营销管理+标签管理+修改',
      permission: 'labelList.edit',
    },
  },
  // 优惠券-优惠券管理
  {
    path: '/couponList',
    name: 'couponList',
    component: () =>
      import(
        '@/pages/marketingManagement/couponManagement/coupon/couponList.vue'
      ),
    meta: {
      title: '营销管理+优惠券管理+优惠券',
      permission: 'couponList.see',
    },
  },
  {
    path: '/couponAdd',
    name: 'couponAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/couponManagement/coupon/couponAdd.vue'
      ),
    meta: {
      title: '营销管理+优惠券管理+优惠券+新增',
      permission: 'couponList.add',
    },
  },
  {
    path: '/couponEdit',
    name: 'couponEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/couponManagement/coupon/couponAdd.vue'
      ),
    meta: {
      title: '营销管理+优惠券管理+优惠券+修改',
      permission: 'couponList.edit',
    },
  },
  {
    path: '/couponDetail',
    name: 'couponDetail',
    component: () =>
      import(
        '@/pages/marketingManagement/couponManagement/coupon/couponDetail.vue'
      ),
    meta: {
      title: '营销管理+优惠券管理+优惠券+详情',
      permission: 'couponList.see',
    },
  },
  {
    path: '/couponTask',
    name: 'couponTask',
    component: () =>
      import(
        '@/pages/marketingManagement/couponManagement/coupon/couponTask.vue'
      ),
    meta: {
      title: '营销管理+优惠券管理+优惠券+发放优惠券',
      permission: 'couponList.grant',
    },
  },
  {
    path: '/couponTaskDetail',
    name: 'couponTaskDetail',
    component: () =>
      import(
        '@/pages/marketingManagement/couponManagement/coupon/couponTaskDetail.vue'
      ),
    meta: {
      title: '营销管理+优惠券管理+优惠券+发放明细',
      permission: 'couponList.grantDetails',
    },
  },
  // 优惠券-手动发放记录
  {
    path: '/couponRecordList',
    name: 'couponRecordList',
    component: () =>
      import(
        '@/pages/marketingManagement/couponManagement/record/couponRecordList.vue'
      ),
    meta: {
      title: '营销管理+优惠券管理+手动发放记录',
      permission: 'couponRecordList.see',
    },
  },
  {
    path: '/couponTaskEdit',
    name: 'couponTaskEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/couponManagement/coupon/couponTask.vue'
      ),
    meta: {
      title: '营销管理+优惠券管理+手动发放记录+修改任务',
      permission: 'couponRecordList.edit',
    },
  },
  {
    path: '/couponRecordDetail',
    name: 'couponRecordDetail',
    component: () =>
      import(
        '@/pages/marketingManagement/couponManagement/record/couponRecordDetail.vue'
      ),
    meta: {
      title: '营销管理+优惠券管理+手动发放记录+任务详情',
      permission: 'couponRecordList.see',
    },
  },
  // 用户活动-注册活动
  {
    path: '/registerActivityList',
    name: 'registerActivityList',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/register/registerActivityList.vue'
      ),
    meta: {
      title: '营销管理+用户活动+注册活动',
      permission: 'registerActivityList.see',
    },
  },
  {
    path: '/registerActivityAdd',
    name: 'registerActivityAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/register/registerActivityAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+注册活动+新增',
      permission: 'registerActivityList.add',
      tip: '活动说明：活动时间范围内，为移动端新注册、后台手动添加的非企业用户下发配置的优惠券奖励，后台手动添加的企业用户不在活动范围内！',
    },
  },
  {
    path: '/registerActivityEdit',
    name: 'registerActivityEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/register/registerActivityAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+注册活动+修改',
      permission: 'registerActivityList.edit',
      tip: '活动说明：活动时间范围内，为移动端新注册、后台手动添加的非企业用户下发配置的优惠券奖励，后台手动添加的企业用户不在活动范围内！',
    },
  },
  {
    path: '/registerActivityDetail',
    name: 'registerActivityDetail',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/register/registerActivityDetail.vue'
      ),
    meta: {
      title: '营销管理+用户活动+注册活动+详情',
      permission: 'registerActivityList.see',
    },
  },
  // 首次充电活动 
  {
    path: '/firstChargeActivityList',
    name: 'firstChargeActivityList',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/firstCharge/firstChargeActivityList.vue'
      ),
    meta: {
      title: '营销管理+用户活动+首次充电活动',
      permission: 'firstChargeActivityList.see',
    },
  },
  {
    path: '/firstChargeActivityAdd',
    name: 'firstChargeActivityAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/firstCharge/firstChargeActivityAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+首次充电活动+新增',
      permission: 'firstChargeActivityList.add',
      tip: '活动说明：活动时间范围内，用户在平台首次充电且满足消费条件的情况下，为其下发配置的优惠券奖励！请勿配置活动时间重叠的消费活动，同一时间两个活动均进行中，平台以修改时间最新为准！'
    },
  },
  {
    path: '/firstChargeActivityEdit',
    name: 'firstChargeActivityEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/firstCharge/firstChargeActivityAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+首次充电活动+修改',
      permission: 'firstChargeActivityList.edit',
      tip: '活动说明：活动时间范围内，用户在平台首次充电且满足消费条件的情况下，为其下发配置的优惠券奖励！请勿配置活动时间重叠的消费活动，同一时间两个活动均进行中，平台以修改时间最新为准！'
    },
  },
  {
    path: '/firstChargeActivityDetail',
    name: 'firstChargeActivityDetail',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/firstCharge/firstChargeActivityDetail.vue'
      ),
    meta: {
      title: '营销管理+用户活动+首次充电活动+详情',
      permission: 'firstChargeActivityList.see',
    },
  },
  // 单次消费活动
  {
    path: '/singleChargeList',
    name: 'singleChargeList',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/singleCharge/singleChargeList.vue'
      ),
    meta: {
      title: '营销管理+用户活动+单次消费活动',
      permission: 'singleChargeList.see',
    },
  },
  {
    path: '/singleChargeAdd',
    name: 'singleChargeAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/singleCharge/singleChargeAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+单次消费活动+新增',
      permission: 'singleChargeList.add',
      tip: '活动说明：活动可参与用户，活动期间在活动电站单次充电满足一定电量或实付满足一定金额，即下发相应的优惠券奖励！请勿配置活动时间、可参与用户均重叠的活动，即同一用户同一时间有两个进展中的活动。'
    },
  },
  {
    path: '/singleChargeEdit',
    name: 'singleChargeEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/singleCharge/singleChargeAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+单次消费活动+修改',
      permission: 'singleChargeList.edit',
      tip: '活动说明：活动可参与用户，活动期间在活动电站单次充电满足一定电量或实付满足一定金额，即下发相应的优惠券奖励！请勿配置活动时间、可参与用户均重叠的活动，即同一用户同一时间有两个进展中的活动。'
    },
  },
  {
    path: '/singleChargeDetail',
    name: 'singleChargeDetail',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/singleCharge/singleChargeDetail.vue'
      ),
    meta: {
      title: '营销管理+用户活动+单次消费活动+详情',
      permission: 'singleChargeList.see',
    },
  },
  // 累计消费活动
  {
    path: '/accumulateChargeList',
    name: 'accumulateChargeList',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/accumulateCharge/accumulateChargeList.vue'
      ),
    meta: {
      title: '营销管理+用户活动+累计消费活动',
      permission: 'accumulateChargeList.see',
    },
  },
  {
    path: '/accumulateChargeAdd',
    name: 'accumulateChargeAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/accumulateCharge/accumulateChargeAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+累计消费活动+新增',
      permission: 'accumulateChargeList.add',
      tip: '活动说明：创建累计消费活动，设置累计消费的奖励梯度以及该梯度对应的优惠券奖励。活动期间，活动可参与用户在活动电站累计消费达到某一梯度即下发相应梯度的优惠券奖励！请勿配置活动时间、可参与用户均重叠的活动，即同一用户同一时间有两个进展中的活动。'
    },
  },
  {
    path: '/accumulateChargeEdit',
    name: 'accumulateChargeEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/accumulateCharge/accumulateChargeAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+累计消费活动+修改',
      permission: 'accumulateChargeList.edit',
      tip: '活动说明：创建累计消费活动，设置累计消费的奖励梯度以及该梯度对应的优惠券奖励。活动期间，活动可参与用户在活动电站累计消费达到某一梯度即下发相应梯度的优惠券奖励！请勿配置活动时间、可参与用户均重叠的活动，即同一用户同一时间有两个进展中的活动。'
    },
  },
  {
    path: '/accumulateChargeDetail',
    name: 'accumulateChargeDetail',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/accumulateCharge/accumulateChargeDetail.vue'
      ),
    meta: {
      title: '营销管理+用户活动+累计消费活动+详情',
      permission: 'accumulateChargeList.see',
    },
  },
  // 充值活动
  {
    path: '/rechangeActivityList',
    name: 'rechangeActivityList',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/rechange/rechangeActivityList.vue'
      ),
    meta: {
      title: '营销管理+用户活动+充值活动',
      permission: 'rechangeActivityList.see',
    },
  },
  {
    path: '/rechangeActivityAdd',
    name: 'rechangeActivityAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/rechange/rechangeActivityAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+充值活动+新增',
      permission: 'rechangeActivityList.add',
      tip: '活动说明：创建充值活动，设置充值的奖励梯度以及该梯度对应的优惠券奖励。活动期间，活动可参与用户单次充值满足某一梯度即下发相应梯度的优惠券奖励！请勿配置活动时间、可参与用户均重叠的活动，即同一用户同一时间有两个进展中的活动。'
    },
  },
  {
    path: '/rechangeActivityEdit',
    name: 'rechangeActivityEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/rechange/rechangeActivityAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+充值活动+修改',
      permission: 'rechangeActivityList.edit',
      tip: '活动说明：创建充值活动，设置充值的奖励梯度以及该梯度对应的优惠券奖励。活动期间，活动可参与用户单次充值满足某一梯度即下发相应梯度的优惠券奖励！请勿配置活动时间、可参与用户均重叠的活动，即同一用户同一时间有两个进展中的活动。'
    },
  },
  {
    path: '/rechangeActivityDetail',
    name: 'rechangeActivityDetail',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/rechange/rechangeActivityDetail.vue'
      ),
    meta: {
      title: '营销管理+用户活动+充值活动+详情',
      permission: 'rechangeActivityList.see',
    },
  },
  // 分享活动
  {
    path: '/shareActivityList',
    name: 'shareActivityList',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/share/shareActivityList.vue'
      ),
    meta: {
      title: '营销管理+用户活动+分享活动',
      permission: 'shareActivityList.see',
    },
  },
  {
    path: '/shareActivityAdd',
    name: 'shareActivityAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/share/shareActivityAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+分享活动+新增',
      permission: 'shareActivityList.add',
      tip: '活动说明：活动时间范围内用户进入活动分享页面，点击分享按钮将移动端分享给微信好友后，平台为其下发配置的优惠券奖励！活动添加后，需要添加广告并将广告链接配置为当前活动，作为活动的入口。'
    },
  },
  {
    path: '/shareActivityEdit',
    name: 'shareActivityEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/share/shareActivityAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+分享活动+修改',
      permission: 'shareActivityList.edit',
      tip: '活动说明：活动时间范围内用户进入活动分享页面，点击分享按钮将移动端分享给微信好友后，平台为其下发配置的优惠券奖励！活动添加后，需要添加广告并将广告链接配置为当前活动，作为活动的入口。'
    },
  },
  {
    path: '/shareActivityDetail',
    name: 'shareActivityDetail',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/share/shareActivityDetail.vue'
      ),
    meta: {
      title: '营销管理+用户活动+分享活动+详情',
      permission: 'shareActivityList.see',
    },
  },
  // 组团充电活动
  {
    path: '/groupChargeList',
    name: 'groupChargeList',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/groupCharge/groupChargeList.vue'
      ),
    meta: {
      title: '营销管理+用户活动+组团充电活动',
      permission: 'groupChargeList.see',
    },
  },
  {
    path: '/groupChargeAdd',
    name: 'groupChargeAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/groupCharge/groupChargeAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+组团充电活动+新增',
      permission: 'groupChargeList.add',
      tip: '活动说明：创建活动，设置成功组团的人数、消费条件要求以及成功后的奖励！活动期间用户自行组团，团员人数以及消费额度均达要求后，平台给团长、团员下发相应的优惠券奖励。活动未结束前，用户已成功组团领取奖励后，可继续开新团。组团期间，团长不可退团，团员可通过加入其他团的方式加入新的团。创建活动后，需要添加广告并将广告链接配置为当前活动，作为活动的入口。'
    },
  },
  {
    path: '/groupChargeEdit',
    name: 'groupChargeEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/groupCharge/groupChargeAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+组团充电活动+修改',
      permission: 'groupChargeList.edit',
      tip: '活动说明：创建活动，设置成功组团的人数、消费条件要求以及成功后的奖励！活动期间用户自行组团，团员人数以及消费额度均达要求后，平台给团长、团员下发相应的优惠券奖励。活动未结束前，用户已成功组团领取奖励后，可继续开新团。组团期间，团长不可退团，团员可通过加入其他团的方式加入新的团。创建活动后，需要添加广告并将广告链接配置为当前活动，作为活动的入口。'
    },
  },
  {
    path: '/groupChargeDetail',
    name: 'groupChargeDetail',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/groupCharge/groupChargeDetail.vue'
      ),
    meta: {
      title: '营销管理+用户活动+组团充电活动+详情',
      permission: 'groupChargeList.see',
    },
  },
  // 扫码领券活动
  {
    path: '/scanActivityList',
    name: 'scanActivityList',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/scan/scanActivityList.vue'
      ),
    meta: {
      title: '营销管理+用户活动+扫码领券活动',
      permission: 'scanActivityList.see',
    },
  },
  {
    path: '/scanActivityAdd',
    name: 'scanActivityAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/scan/scanActivityAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+扫码领券活动+新增',
      permission: 'scanActivityList.add',
      tip: '活动说明：创建活动，平台生成活动二维码，二维码可用于活动文案（线上、线下）中，活动期间，活动可参与用户扫活动码即可领取活动奖励。'
    },
  },
  {
    path: '/scanActivityEdit',
    name: 'scanActivityEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/scan/scanActivityAdd.vue'
      ),
    meta: {
      title: '营销管理+用户活动+扫码领券活动+修改',
      permission: 'scanActivityList.edit',
      tip: '活动说明：创建活动，平台生成活动二维码，二维码可用于活动文案（线上、线下）中，活动期间，活动可参与用户扫活动码即可领取活动奖励。'
    },
  },
  {
    path: '/scanActivityDetail',
    name: 'scanActivityDetail',
    component: () =>
      import(
        '@/pages/marketingManagement/userActivity/scan/scanActivityDetail.vue'
      ),
    meta: {
      title: '营销管理+用户活动+扫码领券活动+详情',
      permission: 'scanActivityList.see',
    },
  },
  // 通知
  {
    path: '/noticeList',
    name: 'noticeList',
    component: () =>
      import(
        '@/pages/marketingManagement/noticeManager/noticeList.vue'
      ),
    meta: {
      title: '营销管理+通知管理',
      permission: 'noticeList.see',
    },
  },
  {
    path: '/noticeAdd',
    name: 'noticeAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/noticeManager/noticeAdd.vue'
      ),
    meta: {
      title: '营销管理+通知管理+新增',
      permission: 'noticeList.add',
    },
  },
  {
    path: '/noticeEdit',
    name: 'noticeEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/noticeManager/noticeAdd.vue'
      ),
    meta: {
      title: '营销管理+通知管理+修改',
      permission: 'noticeList.edit',
    },
  },
  {
    path: '/noticeDetail',
    name: 'noticeDetail',
    component: () =>
      import(
        '@/pages/marketingManagement/noticeManager/noticeDetail.vue'
      ),
    meta: {
      title: '营销管理+通知管理+详情',
      permission: 'noticeList.see',
    },
  },
  // 常见问题
  {
    path: '/questionList',
    name: 'questionList',
    component: () =>
      import(
        '@/pages/marketingManagement/questionManagement/questionList.vue'
      ),
    meta: {
      title: '营销管理+常见问题',
      permission: 'questionList.see',
    },
  },
  {
    path: '/problemList',
    name: 'problemList',
    component: () =>
      import(
        '@/pages/marketingManagement/questionManagement/problemList.vue'
      ),
    meta: {
      title: '营销管理+常见问题+问答管理',
      permission: 'questionList.see',
    },
  },
  {
    path: '/problemAdd',
    name: 'problemAdd',
    component: () =>
      import(
        '@/pages/marketingManagement/questionManagement/problemAdd.vue'
      ),
    meta: {
      title: '营销管理+常见问题+问答管理+新增',
      permission: 'questionList.add',
    },
  },
  {
    path: '/problemEdit',
    name: 'problemEdit',
    component: () =>
      import(
        '@/pages/marketingManagement/questionManagement/problemAdd.vue'
      ),
    meta: {
      title: '营销管理+常见问题+问答管理+修改',
      permission: 'questionList.edit',
    },
  },
];
